package models

import "github.com/astaxie/beego/orm"

type PointModule struct {
	Id int

	PointModuleName string `ht:"list;search;name(模板名称)"  valid:"Required"`
	PointJson       string `orm:"type(text)" ht:"hide;name(模板json)"`

	Point1        float32     `ht:"list;name(数值1)"  valid:"Required"`
	Point1Type    int     `ht:"name(类型);enum([{\"Value\":\"积分\",\"Key\":\"0\"},{\"Value\":\"现金红包\",\"Key\":\"1\"}])"`
	MinCount1     int     `ht:"name(奖项1每天最少数量)"`
	MinCount1Hold int     `ht:"name(奖项1最少数量阈值)"`
	MaxCount1     int     `ht:"name(奖项1每天最大出现次数)"`
	PointPic1     string  `ht:"type(pic);name(图片1)"  valid:""`
	Probability1  float32 `ht:"name(概率1)"  valid:"Required"`
	Color1        string  `ht:"name(扇区颜色1)"  valid:"Required"`

	Point2        float32     `ht:"list;name(数值2)"  valid:"Required"`
	Point2Type    int     `ht:"name(类型);enum([{\"Value\":\"积分\",\"Key\":\"0\"},{\"Value\":\"现金红包\",\"Key\":\"1\"}])"`
	MinCount2     int     `ht:"name(奖项2每天最少数量)"`
	MinCount2Hold int     `ht:"name(奖项2最少数量阈值)"`
	MaxCount2     int     `ht:"name(奖项2每天最大出现次数)"`
	PointPic2     string  `ht:"type(pic);name(图片2)"  valid:""`
	Probability2  float32 `ht:"name(概率2)"  valid:""`
	Color2        string  `ht:"name(扇区颜色2)"  valid:""`

	Point3        float32     `ht:"list;name(数值3)"  valid:"Required"`
	Point3Type    int     `ht:"name(类型);enum([{\"Value\":\"积分\",\"Key\":\"0\"},{\"Value\":\"现金红包\",\"Key\":\"1\"}])"`
	MinCount3     int     `ht:"name(奖项3每天最少数量)"`
	MinCount3Hold int     `ht:"name(奖项3最少数量阈值)"`
	MaxCount3     int     `ht:"name(奖项3每天最大出现次数)"`
	PointPic3     string  `ht:"type(pic);name(图片3)"  valid:""`
	Probability3  float32 `ht:"name(概率3)"  valid:"Required"`
	Color3        string  `ht:"name(扇区颜色3)"  valid:"Required"`

	Point4       float32     `ht:"list;name(数值4)"  valid:"Required"`
	Point4Type   int     `ht:"name(类型);enum([{\"Value\":\"积分\",\"Key\":\"0\"},{\"Value\":\"现金红包\",\"Key\":\"1\"}])"`
	PointPic4    string  `ht:"type(pic);name(图片4)"  valid:""`
	Probability4 float32 `ht:"name(概率4)"  valid:"Required"`
	Color4       string  `ht:"name(扇区颜色4)"  valid:"Required"`

	Point5       float32     `ht:"list;name(数值5)"  valid:"Required"`
	Point5Type   int     `ht:"name(类型);enum([{\"Value\":\"积分\",\"Key\":\"0\"},{\"Value\":\"现金红包\",\"Key\":\"1\"}])"`
	PointPic5    string  `ht:"type(pic);name(图片5)"  valid:""`
	Probability5 float32 `ht:"name(概率5)"  valid:"Required"`
	Color5       string  `ht:"name(扇区颜色5)"  valid:"Required"`

	Point6       float32     `ht:"list;name(数值6)"  valid:"Required"`
	Point6Type   int     `ht:"name(类型);enum([{\"Value\":\"积分\",\"Key\":\"0\"},{\"Value\":\"现金红包\",\"Key\":\"1\"}])"`
	PointPic6    string  `ht:"type(pic);name(图片6)"  valid:""`
	Probability6 float32 `ht:"name(概率6)"  valid:"Required"`
	Color6       string  `ht:"name(扇区颜色6)"  valid:"Required"`

	Point7       float32     `ht:"list;name(数值7)"  valid:"Required"`
	Point7Type   int     `ht:"name(类型);enum([{\"Value\":\"积分\",\"Key\":\"0\"},{\"Value\":\"现金红包\",\"Key\":\"1\"}])"`
	PointPic7    string  `ht:"type(pic);name(图片7)"  valid:""`
	Probability7 float32 `ht:"name(概率7)"  valid:"Required"`
	Color7       string  `ht:"name(扇区颜色7)"  valid:"Required"`

	Point8       float32     `ht:"list;name(数值8)"  valid:"Required"`
	Point8Type   int     `ht:"name(类型);enum([{\"Value\":\"积分\",\"Key\":\"0\"},{\"Value\":\"现金红包\",\"Key\":\"1\"}])"`
	PointPic8    string  `ht:"type(pic);name(图片8)"  valid:""`
	Probability8 float32 `ht:"name(概率8)"  valid:"Required"`
	Color8       string  `ht:"name(扇区颜色8)"  valid:"Required"`

	Point9       float32     `ht:"list;name(数值9)"  valid:"Required"`
	Point9Type   int     `ht:"name(类型);enum([{\"Value\":\"积分\",\"Key\":\"0\"},{\"Value\":\"现金红包\",\"Key\":\"1\"}])"`
	PointPic9    string  `ht:"type(pic);name(图片9)"  valid:""`
	Probability9 float32 `ht:"name(概率9)"  valid:"Required"`
	Color9       string  `ht:"name(扇区颜色9)"  valid:"Required"`

	Point10       float32     `ht:"hide;name(数值10)"  valid:""`
	Point10Type   int     `ht:"hide;name(类型);enum([{\"Value\":\"积分\",\"Key\":\"0\"},{\"Value\":\"现金红包\",\"Key\":\"1\"}])"`
	PointPic10    string  `ht:"hide;name(图片10)"  valid:""`
	Probability10 float32 `ht:"hide;name(概率10)"  valid:""`
	Color10       string  `ht:"hide;name(扇区颜色10)"  valid:""`

	Point11       float32     `ht:"hide;name(数值11)"  valid:""`
	Point11Type   int     `ht:"hide;name(类型);enum([{\"Value\":\"积分\",\"Key\":\"0\"},{\"Value\":\"现金红包\",\"Key\":\"1\"}])"`
	PointPic11    string  `ht:"hide;name(图片11)"  valid:""`
	Probability11 float32 `ht:"hide;name(概率11)"  valid:""`
	Color11       string  `ht:"hide;name(扇区颜色11)"  valid:""`

	Point12       float32     `ht:"hide;name(数值12)" `
	Point12Type   int     `ht:"hide;name(类型);enum([{\"Value\":\"积分\",\"Key\":\"0\"},{\"Value\":\"现金红包\",\"Key\":\"1\"}])"`
	PointPic12    string  `ht:"hide;name(图片12)"  valid:""`
	Probability12 float32 `ht:"hide;name(概率12)" `
	Color12       string  `ht:"hide;name(扇区颜色12)"  valid:""`

	Audio1 string `ht:"name(音频1);type(pic)"`
	Audio2 string `ht:"name(音频2);type(pic)"`
	Audio3 string `ht:"name(音频3);type(pic)"`
}

func init() {
	orm.RegisterModel(new(PointModule))
}
func (*PointModule) TableName() string {
	return "point_module"
}

func (*PointModule) FN_Id() string {
	return "Id"
}
func (*PointModule) FN_PointModuleName() string {
	return "PointModuleName"
}
func (*PointModule) FN_PointJson() string {
	return "PointJson"
}
func (*PointModule) FN_Point1() string {
	return "Point1"
}
func (*PointModule) FN_PointPic1() string {
	return "PointPic1"
}
func (*PointModule) FN_Probability1() string {
	return "Probability1"
}
func (*PointModule) FN_Color1() string {
	return "Color1"
}
func (*PointModule) FN_Point2() string {
	return "Point2"
}
func (*PointModule) FN_PointPic2() string {
	return "PointPic2"
}
func (*PointModule) FN_Probability2() string {
	return "Probability2"
}
func (*PointModule) FN_Color2() string {
	return "Color2"
}
func (*PointModule) FN_Point3() string {
	return "Point3"
}
func (*PointModule) FN_PointPic3() string {
	return "PointPic3"
}
func (*PointModule) FN_Probability3() string {
	return "Probability3"
}
func (*PointModule) FN_Color3() string {
	return "Color3"
}
func (*PointModule) FN_Point4() string {
	return "Point4"
}
func (*PointModule) FN_PointPic4() string {
	return "PointPic4"
}
func (*PointModule) FN_Probability4() string {
	return "Probability4"
}
func (*PointModule) FN_Color4() string {
	return "Color4"
}
func (*PointModule) FN_Point5() string {
	return "Point5"
}
func (*PointModule) FN_PointPic5() string {
	return "PointPic5"
}
func (*PointModule) FN_Probability5() string {
	return "Probability5"
}
func (*PointModule) FN_Color5() string {
	return "Color5"
}
func (*PointModule) FN_Point6() string {
	return "Point6"
}
func (*PointModule) FN_PointPic6() string {
	return "PointPic6"
}
func (*PointModule) FN_Probability6() string {
	return "Probability6"
}
func (*PointModule) FN_Color6() string {
	return "Color6"
}
func (*PointModule) FN_Point7() string {
	return "Point7"
}
func (*PointModule) FN_PointPic7() string {
	return "PointPic7"
}
func (*PointModule) FN_Probability7() string {
	return "Probability7"
}
func (*PointModule) FN_Color7() string {
	return "Color7"
}
func (*PointModule) FN_Point8() string {
	return "Point8"
}
func (*PointModule) FN_PointPic8() string {
	return "PointPic8"
}
func (*PointModule) FN_Probability8() string {
	return "Probability8"
}
func (*PointModule) FN_Color8() string {
	return "Color8"
}
func (*PointModule) FN_Point9() string {
	return "Point9"
}
func (*PointModule) FN_PointPic9() string {
	return "PointPic9"
}
func (*PointModule) FN_Probability9() string {
	return "Probability9"
}
func (*PointModule) FN_Color9() string {
	return "Color9"
}
func (*PointModule) FN_Point10() string {
	return "Point10"
}
func (*PointModule) FN_PointPic10() string {
	return "PointPic10"
}
func (*PointModule) FN_Probability10() string {
	return "Probability10"
}
func (*PointModule) FN_Color10() string {
	return "Color10"
}
func (*PointModule) FN_Point11() string {
	return "Point11"
}
func (*PointModule) FN_PointPic11() string {
	return "PointPic11"
}
func (*PointModule) FN_Probability11() string {
	return "Probability11"
}
func (*PointModule) FN_Color11() string {
	return "Color11"
}
func (*PointModule) FN_Point12() string {
	return "Point12"
}
func (*PointModule) FN_PointPic12() string {
	return "PointPic12"
}
func (*PointModule) FN_Probability12() string {
	return "Probability12"
}
func (*PointModule) FN_Color12() string {
	return "Color12"
}
func (*PointModule) FN_Audio1() string {
	return "Audio1"
}
func (*PointModule) FN_Audio2() string {
	return "Audio2"
}
func (*PointModule) FN_Audio3() string {
	return "Audio3"
}

func (*PointModule) FN_MinCount1() string {
	return "MinCount1"
}
func (*PointModule) FN_MinCount1Hold() string {
	return "MinCount1Hold"
}
func (*PointModule) FN_MaxCount1() string {
	return "MaxCount1"
}

func (*PointModule) FN_MinCount2() string {
	return "MinCount2"
}
func (*PointModule) FN_MinCount2Hold() string {
	return "MinCount2Hold"
}
func (*PointModule) FN_MaxCount2() string {
	return "MaxCount2"
}

func (*PointModule) FN_MinCount3() string {
	return "MinCount3"
}
func (*PointModule) FN_MinCount3Hold() string {
	return "MinCount3Hold"
}
func (*PointModule) FN_MaxCount3() string {
	return "MaxCount3"
}
func (*PointModule) FN_Point1Type() string  { return "Point1Type" }
func (*PointModule) FN_Point2Type() string  { return "Point2Type" }
func (*PointModule) FN_Point3Type() string  { return "Point3Type" }
func (*PointModule) FN_Point4Type() string  { return "Point4Type" }
func (*PointModule) FN_Point5Type() string  { return "Point5Type" }
func (*PointModule) FN_Point6Type() string  { return "Point6Type" }
func (*PointModule) FN_Point7Type() string  { return "Point7Type" }
func (*PointModule) FN_Point8Type() string  { return "Point8Type" }
func (*PointModule) FN_Point9Type() string  { return "Point9Type" }
func (*PointModule) FN_Point10Type() string { return "Point10Type" }
func (*PointModule) FN_Point11Type() string { return "Point11Type" }
func (*PointModule) FN_Point12Type() string { return "Point12Type" }

func PointModuleGetInfo(point *PointModule) error {
	o := orm.NewOrm()
	return o.Read(point)
}
